package com.zhilianbao.leyaogo.ui.activity.me.myorder;

import android.graphics.Color;
import android.os.Bundle;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.widget.TextView;

import com.zhilianbao.leyaogo.R;
import com.zhilianbao.leyaogo.ui.activity.base.BaseOkHttpActivity;

import butterknife.BindView;

/**
 * Created by gyt on 2017/3/1
 * 退款退货
 */
public class RefundActivity extends BaseOkHttpActivity {
    @BindView(R.id.label_refund_type)
    TextView mTvRefundType;

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_refund;
    }

    @Override
    protected void initViewsAndEvents(Bundle savedInstanceState) {
        initToolbar(getString(R.string.apply_for_refund));


        SpannableStringBuilder stringBuilder = SpannableStringBuilder.valueOf(getString(R.string.refund_type));
        ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED);
        stringBuilder.setSpan(foregroundColorSpan, 4, 5, Spannable.SPAN_EXCLUSIVE_INCLUSIVE);// 设置前景色为红色
        mTvRefundType.setText(stringBuilder);

    }

}
